﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace AexoManager.Models
{
    public class PartesViewModel
    {
        public int IdParte { get; set; }
        
        [Required]
        [StringLength(8)]
        public string Codigo { get; set; }

        [Required]
        [StringLength(128)]
        public string Descripcion { get; set; }

        public int IdCosto { get; set; }

        [Display(Name = "Fecha Desde")]
        [DataType(DataType.Date)]
        [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:dd/MM/yyyy}")]
        public DateTime? FechaDesde { get; set; }

        [Display(Name = "Fecha Hasta")]
        [DataType(DataType.Date)]
        [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:dd/MM/yyyy}")]
        public DateTime? FechaHasta { get; set; }

        [Display(Name = "Importe")]
        [DataType(DataType.Currency)]
        public double? Importe { get; set; }

    }
}